home *** CD-ROM | disk | FTP | other *** search
/ PsL Monthly 1993 December / PSL Monthly Shareware CD-ROM (December 1993).iso / prgmming / dos / pascal / jdbtree.com / CUST.DOC < prev    next >
Encoding:
Text File  |  1991-06-07  |  3.1 KB  |  115 lines

  1.  
  2.  
  3.             File:  CUST
  4.           Author:  Jeffrey L. Darling
  5. Date established:  06-07-1991
  6.   Latest release:  06-07-1991
  7.  Current Version:  1.00
  8. =======================================================================
  9.  
  10.  
  11.  
  12.                             CONTENTS
  13.  
  14.                      I.  Purpose
  15.                     II.  Brief Description
  16.                    III.  Version Information
  17.                     IV.  Authors Contact information
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24. I. Purpose:
  25. -----------------------------------------------------------------------
  26.  
  27. This Turbo Pascal program demonstrates how to use Binary trees
  28. With the application of files using the Seek procedure.
  29.  
  30.  
  31. If you REALLY want to understand this implementation, then follow
  32. the instructions below.
  33.  
  34. 1.  Load CUST.PAS into TURBO PASCAL using INTEGRATED ENVIRONMENT.
  35.  
  36. 2.  Use the "Watch Variable" capabilities on the following variables
  37.     in this format:
  38.  
  39.                 Ancestor
  40.                 Root
  41.                 Ancestor^,R
  42.                 Root^,R
  43.                 CUST_REC,R
  44.                 Cust_File
  45.  
  46.  
  47.     Watch them! keep track of what is happening with each and
  48.     every variable.
  49.  
  50. 3.  Use the "Trace" capabilities! In conjunction with the
  51.     "Watch Variable" option. You will see how it really works.
  52.     Pressing F7 will execute One line at a time.
  53.     (Step Through the program)
  54.  
  55.  
  56. 4.  Change the CUST.DAT file.  Put in values of your own. Then
  57.     try to predict what will happen in each and every variable.
  58.     This will force you to think about HOW it works.  Think about
  59.     every tiny detail. Be creative, Notice things that are side
  60.     effects and how you can use these side effects in programs that
  61.     YOU write. To do this, just Uncomment the MAKEFILE procedure
  62.  
  63.     {makefile;}  {Commented}
  64.  
  65.     makefile;    {Uncommented}
  66.  
  67. Believe me, just try it. I think you will be surprised with
  68. the results.  Especially if you are a novice programmer.
  69.  
  70.  
  71.  
  72. II. Brief Description:
  73. -----------------------------------------------------------------------
  74.  
  75. In this program, each node on the tree contains a integer index to the
  76. file and an integer number as the account number. In this program
  77. the records are sorted and displayed in Ascending order on the Account
  78. number. The data file is not sorted! it remains the same.
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85. III. Version Information
  86. -----------------------------------------------------------------------
  87.  
  88.  1.00 Initial release 06-07-1991
  89.  
  90.       Original implementation of Binary trees with files using the
  91.       seek procedure.
  92.  
  93.  
  94.  
  95.  
  96. IV. Authors Contact information
  97. -----------------------------------------------------------------------
  98.  
  99.       If you have any suggestions, questions or comments feel free
  100.       to contact me.
  101.  
  102.         U.S. MAIL:    Jeff Darling
  103.                       P.O. Box 154
  104.                       Barrington Il, 60011
  105.  
  106.         Email:        Jeff Darling
  107.                       Polysyncronism BBS
  108.                       (708) 358-5104
  109.                       24 hours 300/1200/2400 8N1
  110.  
  111.         CompuServe:   Jeff Darling 72010,22
  112.  
  113.  
  114.  
  115.